package edu.hawaii.senin.iclouds.statistics;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

/**
 * Tests NormalD implementation.
 * 
 * @author Administrator
 * 
 */
public class TestNormalD {

  /**
   * Basic test of the returning value.
   * 
   */
  @Test
  public void testNormalDfunc() {
    NormalD dist = new NormalD(0.0, 1.0);
    assertEquals("Testing normal distribution", Double.valueOf(1 / Math.sqrt(2 * Math.PI)), dist
        .getValue(0.0));
  }

}
